using Demo.Model;
using Microsoft.EntityFrameworkCore;

namespace Demo.Db
{
    public class Demosoft:DbContext{

            private readonly string _constring="server=.;database=Demo;uid=sa;pwd=123456";
            protected override void OnConfiguring(DbContextOptionsBuilder builder){
                builder.UseSqlServer(_constring);
            }
            public DbSet<Product> Products{get;set;}
            public DbSet<Category> Categorys{get;set;}

    }
}